import request from '@/utils/request.js'

// 保存文章
export const SaveComment = data => {
  return request({
    url: '/member/comment/saveComment',
    method: 'post',
    data,
  })
}


// 查询文章的所有评论
export const ListCommentByArticleId = (params) => {
  return request({
    url: '/member/comment/listCommentByArticleId',
    method: 'get',
    params,
  })
}


// 点赞文章
export const LikeComment = (params) => {
  return request({
    url: '/member/comment/likeComment',
    method: 'get',
    params,
  })
}

